//
//  RefreshHeader.swift
//  SCA
//
//  Created by tjun on 2025/8/31.
//

import UIKit
import MJRefresh

class RefreshHeader: MJRefreshNormalHeader {

    override init(frame: CGRect) {
            super.init(frame: frame)
            setupUI()
        }

        required init?(coder: NSCoder) {
            super.init(coder: coder)
            setupUI()
        }

        private func setupUI() {
            setTitle("刷新中..".localizedString, for: .refreshing)
            setTitle("松开刷新".localizedString, for: .pulling)
            setTitle("下拉刷新".localizedString, for: .idle)

            stateLabel?.textColor = UIColorMake(0x999999)
            stateLabel?.font = UIFont.systemFont(ofSize: 13)
            loadingView?.style = UIActivityIndicatorView.Style.medium
            lastUpdatedTimeLabel?.isHidden = true
        }

    
}
